From: Isaku Yamahata Date: Thu, 30 Oct 2008 02:51:55 +0000 (+0900) Subject: [IA64] Fix an memory attribute issue. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14056 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=69d2efbf7016c6a25aab135fabeac30e9b7f37de;p=xen.git [IA64] Fix an memory attribute issue. We should ensure Qemu and Guest use same attribute for accessing the VGA ram, otherwise, host may hang. This patch fixes trivial typo in 18690:c19871b66cea. Signed-off-by: Xiantao Zhang --- diff --git a/xen/arch/ia64/vmx/vtlb.c b/xen/arch/ia64/vmx/vtlb.c index 9dda7af9c0..fa7ed2b7e0 100644 --- a/xen/arch/ia64/vmx/vtlb.c +++ b/xen/arch/ia64/vmx/vtlb.c @@ -522,7 +522,7 @@ static u64 translate_phy_pte(VCPU *v, u64 pte, u64 itir, u64 va) * which is required by vga acceleration since qemu maps shared * vram buffer with WB. */ - if (mfn_valid(maddr >> PAGE_SHIFT) && phy_pte.ma == VA_MATTR_NATPAGE) + if (mfn_valid(maddr >> PAGE_SHIFT) && phy_pte.ma != VA_MATTR_NATPAGE) phy_pte.ma = VA_MATTR_WB; maddr = ((maddr & _PAGE_PPN_MASK) & PAGE_MASK) | (paddr & ~PAGE_MASK);